package com.hospital.hospitalsystem.modules.hospital.service;

import com.hospital.hospitalsystem.modules.hospital.dao.entity.DoctorOrderEntity;
import com.hospital.hospitalsystem.modules.hospital.dao.mapper.DoctorOrderMapper;
import com.hospital.hospitalsystem.modules.hospital.dto.DoctorGetReq;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author qiancheng@cqxyy.net
 * @date 2023/2/23
 */
@Component
public class DoctorOrderService {

    @Autowired
    private DoctorOrderMapper doctorOrderMapper;

    public void insertSelective(DoctorOrderEntity doctorOrderEntity){
        doctorOrderMapper.insertSelective(doctorOrderEntity);
    }

    public List<DoctorOrderEntity> selectByExample(Example example){
        return doctorOrderMapper.selectByExample(example);
    }

    public void deleteByExample(Example example) {
        doctorOrderMapper.deleteByExample(example);
    }

    public List<DoctorOrderEntity> getBookTime(DoctorGetReq req) {
        return doctorOrderMapper.getBookTime(req);
    }
}
